package JasonsClasses;

public class GridPoint {
	private int heoristic;
	private boolean isFilled;
	private boolean isAttacked;
	private int row;
	private int column;
	private int shipIndex;
	public GridPoint(int x, int y){
		this.row = y;
		this.column = x;
		isFilled = false;
		heoristic = 0;
		isAttacked = false;
	}
	public GridPoint(){
		
	}
	
	public boolean isEmpty(){
		return !(this.isFilled);
	}
	
	public boolean isAttacked(){
		return this.isAttacked;
	}
	
	public void setEmpty(){
		this.isFilled = false;
	}
	
	public void setFull(int index){
		this.isFilled = true;
		this.shipIndex = index;
	}
	
	public void setAttacked(){
		this.isAttacked = true;
	}
	
	public void setUnattacked(){
		this.isAttacked = false;
	}
}
